AR	=ar
AS	=as --32
CC	=gcc -march=i386
LD	=ld -m elf_i386
CFLAGS	=-Wall -m32 -fstrength-reduce -fno-stack-protector -fomit-frame-pointer -nostdinc -I../include
CPP	=gcc -E -nostdinc -I../include

.c.s:
	$(CC) $(CFLAGS) \
	-S -o $*.s $<
.c.o:
	$(CC) $(CFLAGS) \
	-c -o $*.o $<
.s.o:
	$(AS) -o $*.o $<

OBJS= buffer.o

fs.o: $(OBJS)
	$(LD) -r -o fs.o $(OBJS)

clean:
	-rm -f *.o *.a
	for i in *.c;do rm -f `basename $$i .c`.s;done

buffer.o: buffer.c
